#include<bits/stdc++.h>
using namespace std;
#define N 201
int c[N];

void read(int a[]){
    int len,i;
    string s;
    cin>>s;
    len=s.length();
    for(i=1;i<=len;i++)a[i]=s[len-i]-'0';//将字符3转化为数字3
    a[0]=len;
}
void add(int a[],int b[]){
    int i;
    for(i=1;i<=max(a[0],b[0]);i++){
        c[i]+=a[i]+b[i];
        c[i+1]=c[i]/10;
        c[i]=c[i]%10;
    }
    if(c[i]>0)
        c[0]=i;
    else
        c[0]=i-1;
}
void display(int a[]){
    for(int i=a[0];i>=1;i=i-1){
        cout<<a[i];
    }
}

int main(){
    int a[N],b[N];
    memset(a,0,sizeof(a));
    memset(b,0,sizeof(b));
    memset(c,0,sizeof(c));
    read(a);
    read(b);
    add(a,b);
    display(c);

    return 0;
}